minios: implement ffs, ffsl and ffsll.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 08:41:59 +0000 (09:41 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 08:41:59 +0000 (09:41 +0100)
commit7f1f6b865b0d72977ee517873cedcba71744b099
tree64759c37e31368f30322e63ef802f64430d3f610
parent18062591742c7c4f711678d8c2db4f1518965b6a
minios: implement ffs, ffsl and ffsll.

The first function is compiled only in case minios is compiled without
newlib, since newlib already provides an implementation for ffs.
On the other hand ffsl and ffsll are always compiled because newlib
misses those functions.
This patch also provides an implementation for __ffsti2 and __ffsdi2
because they are needed by gcc in order to successfully link ffsll.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
extras/mini-os/include/posix/strings.h
extras/mini-os/lib/string.c